package com.fjec.paid.schedule.handler;

import com.fjec.paid.service.IBizOrderRefundService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Component
public class QueryRefundHandler {
    @Resource
    private IBizOrderRefundService bizOrderRefundService;

    public void handle(int limit, int minutes) {
        List<Map<String, Object>> refundings = bizOrderRefundService.getRefundings(limit);
        refundings.forEach(ref -> {
            bizOrderRefundService.doQuery(ref);
        });
    }
}
